/*
 * @Author: HeAo
 * @Date: 2021-11-05 09:44:43
 * @LastEditTime: 2021-11-05 11:39:07
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \web2103-2105\web2103code\4-1-Nodejs\day06\init\app\router.js
 * 别乱动！
 */
'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/student/findAll', controller.student.findAll);
  router.post('/student/saveOrUpdate', controller.student.saveOrUpdate);
  router.delete('/student/deleteById', controller.student.deleteById);
  router.get('/student/pageQuery', controller.student.pageQuery);
};
